package com.zengfa.task.server.domain.service;

import java.util.List;

import com.zengfa.task.api.enums.JobStatus;
import com.zengfa.task.server.domain.entity.Job;
import com.zengfa.task.server.domain.entity.JobNode;

public interface IJobNodeService {

	public void saveTaskNodes(Job job,List<JobNode> nodeList);
	
	public JobNode findByNodeCode(String jobId,String nodeCode);
	
	public List<JobNode> listByJobId(String jobId);
	
	public void saveNodeStatus(String nodeId,JobStatus status,String message);
	
	/**
	 * 重置任务节点
	 * @param jobId
	 */
	public void resetJobNodes(String jobId);
	
}
